<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>理想国真惠玩</title>
    <!-- UIkit CSS -->
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/uikit@3.2.2/dist/css/uikit.min.css"/>
</head>
<body>
<!--默认外边距-->
<div class="uk-margin">
    <!--搜索框 默认样式-->
    <form class="uk-search uk-search-default">
        <!--搜索图标-->
        <a href="" uk-search-icon></a>
        <input class="uk-search-input" type="search" placeholder="Search...">
    </form>
</div>

<div class="uk-margin">
    <form class="uk-search uk-search-default">
        <!--右侧的搜索图标-->
        <a href="javascript:;" id="searchBtn" class="uk-search-icon-flip" uk-search-icon></a>
        <input class="uk-search-input" type="search" placeholder="Search...">
    </form>
</div>

<!-- UIkit JS -->
<script src="https://cdn.jsdelivr.net/npm/uikit@3.2.2/dist/js/uikit.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/uikit@3.2.2/dist/js/uikit-icons.min.js"></script>
<script>
    let searchBtn = document.getElementById('searchBtn')
    searchBtn.onclick = function () {
        UIkit.notification({message: '您点击了搜索图标', status: 'success'})
    };
</script>
</body>
</html>